package yt.demo.appcorequartz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import yt.demo.appcommondb.base.BaseEntity;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class QuartzLog extends BaseEntity<QuartzLog> {

    @TableId
    @Schema(name = "id", description = "主键ID")
    private Integer id;

    private Integer jobId;

    @Schema(description = "Bean名称")
    private String beanName;

    @Schema(description = "执行参数")
    private String params;

    @Schema(description = "状态：1成功，2失败")
    private Integer status;

    @Schema(description = "执行时间（秒）")
    private Integer executeTime;

    @Schema(description = "错误信息")
    private String error;

    @Schema(description = "返回信息")
    private String result;

    @TableField(exist = false)
    private Date updateTime;

    @TableField(exist = false)
    private Date deletedAt;
}
